home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.9 KB | 142 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:LinkSrc.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Theory of Operation
- *
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODLinkSource_xh
- #define SOM_ODLinkSource_xh
-
- class ODLinkSource;
-
- #define ODLinkSource_MajorVersion 1
- #define ODLinkSource_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODBaseLinkSource_xh
- #include <LinkSrcB.xh>
- #endif
-
- #ifndef ODLinkSource_API
- #define ODLinkSource_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODStorageUnit;
- class ODLink;
- class ODPart;
- class ODPartList;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODLinkSource Class */
- SOMEXTERN SOMClass * SOMLINK ODLinkSourceNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODLinkSource class object, and the methods it introduces. */
- typedef struct ODLinkSourceClassDataStructure {
- SOMClass *classObject;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- somMToken reserved4;
- somMToken reserved5;
- somMToken reserved6;
- somMToken reserved7;
- } ODLinkSourceClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODLinkSourceClassDataStructure * ODLinkSourceGetClassData ( void );
- # undef ODLinkSourceClassData
- # define ODLinkSourceClassData (*ODLinkSourceGetClassData())
- #else
- SOMEXTERN ODLinkSourceClassDataStructure ODLinkSourceClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODLinkSource ODLinkSourceClassData.classObject
-
- /* The API to parentMtabs for ODLinkSource, and the instance data it introduces. */
- SOMEXTERN struct ODLinkSourceCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODLinkSourceCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODLinkSource
- */
- SOMEXTERN {
- }
-
- #endif /* ODLinkSource_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODLinkSource
- */
- class ODLinkSource : public ODBaseLinkSource
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODLinkSourceClassData.classObject)
- ODLinkSourceNewClass(ODLinkSource_MajorVersion,ODLinkSource_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODLinkSourceClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODLinkSourceClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
-
- }; /* ODLinkSource */
-
-
-
- #endif /* SOM_ODLinkSource_xh */
-